package com.example.admin.androidtest.innerclass;

/**
 * Created by admin on 2017/12/21.
 */

class HelloA {
    public HelloA() {
        System.out.println("HelloA");//3
    }

    {
        System.out.println("I'm A class");//2
    }

    static {
        System.out.println("static A");//1
    }
}

public class Test extends HelloA {
    public Test() {
        System.out.println("HelloB");//3
    }

    {
        System.out.println("I'm B class");//2
    }

    static {
        System.out.println("static B");//1
    }

    public static void main(String[] args) {
        new Test();
    }
}
